
import request from '@/utils/request'
import { apiHost } from './config'

// /h5/count/list
export function getCount(params) {
  return request({
    url: apiHost + '/h5/count/list',
    method: 'get',
    params
  })
}
// /h5/report/salesPerformance
export function getsalesPerformance(params) {
  return request({
    url: apiHost + '/h5/report/salesPerformance',
    method: 'get',
    params
  })
}

// /h5/report/salesFunnel
export function getsaleFunnel(params) {
  return request({
    url: apiHost + '/h5/report/salesFunnel',
    method: 'get',
    params
  })
}
// ​/h5​/report​/salesResult 销售结果
export function getSalesResult(params) {
  return request({
    url: apiHost + '/h5/report/salesResult',
    method: 'get',
    params
  })
}
// ​/h5​/report​/salesResult​/success 销售结果成交
export function getSalesResultSuccess(params) {
  return request({
    url: apiHost + '/h5/report/salesResult/success',
    method: 'get',
    params
  })
}

// 个人排行榜 /h5/report/ranking/personal
export function getSalesRankPerson(params) {
  return request({
    url: apiHost + '/h5/report/ranking/personal',
    method: 'get',
    params
  })
}
// 客户排行榜
export function getSalesRankCustomer(params) {
  return request({
    url: apiHost + '/h5/report/ranking/customer',
    method: 'get',
    params
  })
}

// ​/dashboard​/salesAchievement 销售业绩
export function getSalesAchievement(params) {
  return request({
    url: apiHost + '/dashboard/salesAchievement',
    method: 'get',
    params
  })
}
// dashboard/salesFunnel
export function getSalesFunnel(params) {
  return request({
    url: apiHost + '/dashboard/salesFunnel',
    method: 'get',
    params
  })
}
// /dashboard/salesResult
export function getDashboardSaleResult(params) {
  return request({
    url: apiHost + '/dashboard/salesResult',
    method: 'get',
    params
  })
}

// /dashboard/salesResult/success
export function getDashboardSaleResultSuccess(params) {
  return request({
    url: apiHost + '/dashboard/salesResult/success',
    method: 'get',
    params
  })
}
// /dashboard/salesFunnel
